.class final Lcom/farmis/feedme/FeedMeMain$showIfTriggered$2;
.super Lkotlin/jvm/internal/Lambda;
.source "FeedMeMain.kt"

# interfaces
.implements Lkotlin/jvm/functions/Function0;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/farmis/feedme/FeedMeMain;->showIfTriggered(Landroidx/fragment/app/FragmentActivity;)Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x18
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lkotlin/jvm/internal/Lambda;",
        "Lkotlin/jvm/functions/Function0<",
        "Lkotlin/Unit;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic $activity:Landroidx/fragment/app/FragmentActivity;


# direct methods
.method constructor <init>(Landroidx/fragment/app/FragmentActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/farmis/feedme/FeedMeMain$showIfTriggered$2;->$activity:Landroidx/fragment/app/FragmentActivity;

    const/4 p1, 0x0

    invoke-direct {p0, p1}, Lkotlin/jvm/internal/Lambda;-><init>(I)V

    return-void
.end method


# virtual methods
.method public bridge synthetic invoke()Ljava/lang/Object;
    .locals 1

    .line 20
    invoke-virtual {p0}, Lcom/farmis/feedme/FeedMeMain$showIfTriggered$2;->invoke()V

    sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;

    return-object v0
.end method

.method public final invoke()V
    .locals 3

    .line 55
    iget-object v0, p0, Lcom/farmis/feedme/FeedMeMain$showIfTriggered$2;->$activity:Landroidx/fragment/app/FragmentActivity;

    invoke-virtual {v0}, Landroidx/fragment/app/FragmentActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager;

    move-result-object v0

    .line 56
    invoke-virtual {v0}, Landroidx/fragment/app/FragmentManager;->beginTransaction()Landroidx/fragment/app/FragmentTransaction;

    move-result-object v1

    const-string v2, "dialog"

    .line 57
    invoke-virtual {v0, v2}, Landroidx/fragment/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroidx/fragment/app/Fragment;

    move-result-object v2

    if-eqz v2, :cond_0

    .line 58
    invoke-virtual {v1, v2}, Landroidx/fragment/app/FragmentTransaction;->remove(Landroidx/fragment/app/Fragment;)Landroidx/fragment/app/FragmentTransaction;

    :cond_0
    const/4 v2, 0x0

    .line 59
    invoke-virtual {v1, v2}, Landroidx/fragment/app/FragmentTransaction;->addToBackStack(Ljava/lang/String;)Landroidx/fragment/app/FragmentTransaction;

    .line 60
    invoke-virtual {v0}, Landroidx/fragment/app/FragmentManager;->beginTransaction()Landroidx/fragment/app/FragmentTransaction;

    move-result-object v0

    new-instance v1, Lcom/farmis/feedme/Networks$FeedBackNetwork;

    invoke-direct {v1}, Lcom/farmis/feedme/Networks$FeedBackNetwork;-><init>()V

    invoke-virtual {v1}, Lcom/farmis/feedme/abs/AbsSocialNetwork;->getDialog()Lcom/farmis/feedme/abs/AbsDialogFragment;

    move-result-object v1

    const-string v2, "FeedBackDialog"

    invoke-virtual {v0, v1, v2}, Landroidx/fragment/app/FragmentTransaction;->add(Landroidx/fragment/app/Fragment;Ljava/lang/String;)Landroidx/fragment/app/FragmentTransaction;

    invoke-virtual {v0}, Landroidx/fragment/app/FragmentTransaction;->commitAllowingStateLoss()I

    .line 61
    sget-object v0, Lcom/farmis/feedme/Triggers;->INSTANCE:Lcom/farmis/feedme/Triggers;

    iget-object v1, p0, Lcom/farmis/feedme/FeedMeMain$showIfTriggered$2;->$activity:Landroidx/fragment/app/FragmentActivity;

    new-instance v2, Lcom/farmis/feedme/Networks$FeedBackNetwork;

    invoke-direct {v2}, Lcom/farmis/feedme/Networks$FeedBackNetwork;-><init>()V

    invoke-virtual {v0, v1, v2}, Lcom/farmis/feedme/Triggers;->addShownDialog(Landroid/content/Context;Lcom/farmis/feedme/abs/AbsSocialNetwork;)V

    return-void
.end method
